# Uncomment the next line to define a global platform for your project
platform :ios, '17.0'

target 'GoldStar' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for GoldStar
  pod 'SnapKit'
  pod 'RxSwift'
  pod 'RxCocoa'
  pod 'ChameleonFramework'
  pod 'SwiftyUserDefaults'
  pod 'SFSafeSymbols'

  post_install do |installer|
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'  # 强制所有 Pod 使用 iOS 13+
        config.build_settings['ENABLE_BITCODE'] = 'NO'  # 避免 Bitcode 兼容问题 [1](@ref)
      end
    end
    # Apple Silicon 兼容性配置（模拟器 arm64 问题）
    installer.pods_project.build_configurations.each do |config|
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end
  end
  
  target 'GoldStarTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'GoldStarUITests' do
    # Pods for testing
  end

end
